<template>
    <div id="map" ref="mapElement" style="width:100%;height:100%;" ></div>
</template>

<script setup>
import {ref, reactive} from 'vue';
defineComponent({ name: 'SmapDiv' })
import {initMap} from '@/views/earthquake/earthquakeServer/gis/index.js'

//地图
const mapElement = ref();
const initGisMap = ()=>{
    initMap(mapElement.value)
}
defineExpose({initGisMap}) // 提供 setLay 方法，用于渲染数据

onMounted(() => {
    initGisMap()
})
</script>

<style scoped>

</style>
